<template>
  <div class="new">
    <h2>  What’s New ?</h2>
    <div class="content">
      <div class="item" v-for="(item, index) in newArr" :key="index">
        <img :src="item.img" alt="">
        <div>{{item.text}}</div>
      </div>
    </div>
  </div>
</template>

<script>
import {reactive} from "vue"
export default {
  name: "New",
  setup(){

    const newArr = reactive([
      {
        img:"/src/assets/images/3.3 solution.jpg",
        text:"Get Business-Grade 5G Now, For Less!"
      },
      {
        img:"/src/assets/images/3.3 solution.jpg",
        text:"SpeedFusion Technology Powers Kymeta’s Seamless Hybrid Satellite and Cellular Connectivity"
      },
      {
        img:"/src/assets/images/3.3 solution.jpg",
        text:"Peplink and M2M Connectivity to Lead Wireless 5G Charge in Australia"
      },
      {
        img:"/src/assets/images/3.3 solution.jpg",
        text:"Peplink Connectivity Powers 1,600 Vaccination Centers in the UK"
      }
    ])
    return{
      newArr
    }
  }
}
</script>

<style lang="scss" scoped>
.new{
  h2{
    line-height: 120px;
    text-align: center;
    font-size:40px;
    margin-bottom: 0;
    font-weight: normal;
  }
  .content{
    margin:0 auto;
    width:70vw;
    display: flex;
    justify-content:space-between;
    .item{
      width:25%;
      padding:10px;
      box-sizing:border-box;
      img{
        width:100%;
        height:auto;
        object-fit: cover;
      }
      div{
        line-height: 20px;
        margin-top: 7px;
      }
    }
  }
}
</style>
